package com.sprint.service.impl;

import com.sprint.entities.CommonResult;
import com.sprint.entities.Payment;
import com.sprint.service.PaymentService;
import org.springframework.stereotype.Component;

@Component
public class PaymentServiceImpl implements PaymentService {
    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(200,"服务降级返回，--PaymentServiceImpl.paymentSQL",new Payment(id, "error  service"));
    }
}
